<?php
/**
 * Created by PhpStorm.
 * User: chenzhitao
 * Date: 2018/4/21
 * Time: 下午4:23
 */

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class CompanyCase extends Model
{
    protected $table = "t_companycase";
    protected $fillable = ['company_id', 'poster', 'category_id','company_name','service_desc','project_cycle','project_price','staff'];
    public function subcategorys()
    {
        return $this->belongsToMany(SecQualifyCategory::class,'t_categorycompanycase',"companycase_id","category_id");
    }
}